validation script small fixes