Return a validator in validation trait