Redo validation script so that it works with Chrome