Script for running form validation