error handling in login view