working on validation script