Using jQuery-validation to achieve form validation