Added a custom validator.