Correct error handling on login page.