validation script now waits for the load event