add test cases for login