added setValidators and setSanitizers