Implemented the login failure test.