Updated the examples to use the latest validate code