pass operator to custom validation functions