remove unused methods in test_login