Catch failed logins and throw an exception so we don't continue.