- added jquery checkValidity function