Added example for custom validation.