refactored create_valid_user