Catch error on login.