achieve form validation by using jQuery-validation