added test for failed login