Added custom validation method example.