Validator solution