Properly recover from a failed login