Add support for custom validators.