Illustrating a custom validation method