user_login_tests refacted