added custom validation example