update validate scripts in examples