refactored the form validator plugin and updated jquery to 1.9