update validate script