Adapt forms HTML to new system.
Improve error JSON response.
Adapt login and sign up forms to new system.