validate script