added test for login