Updated validation script