extracted login method into the feature_helper
also renamed create_valid_user to be create_user