fix test for login