fixed a a unit test for login