Corrected the validation script