Validation functor