Change error handling for invalid logins