Validator to make a field conditionally required based on another field.