error return corrected on login
Merge pull request #4 from nearform/handle_login_errors

error return corrected on login