added validation example