Improve validation example