Updated error handling for Login. Login form will keep show up if login fail.