Fixes from action URL

Nothing was being echoed. Now the page’s URL is put in the form action attribute so the `alert` state is properly triggered if an error occurs on submission.