added tests for login.