changed validation script