Changed test_login to result