restore valifdate script