Adding missing validation to the login form.
Fixing password matching validation to return the correct status code.