Adding a custom validator to a content type