added test case for login