added tests for login