Validator for challenge 4