Validator implementation