instead of calling `alert()`, show the errors inline like they do in `next.js`.
instead of calling
alert(), show the errors inline like they do innext.js.