Function moved out of jQuery Ducument ready function
jQuery validate plugin added