register validation script updated