form validation help

form validation help

hey guys im using the validation plugin and im wondering is it possible on submit to remotly access another page so that i can check if the details posted are correct. ie. user exists? if not then for the form to be invalid

thank you

  1. $("#login-form").validate({
            rules:{
                identity: {
                    required: true
                },
               
                password: {
                    required: true
                },
            },
                   
            messages:
            {
                identity: {
                    required: "Please enter your username or email-address."
                },
                password: {
                    required: "Please enter your password."
                },
            },
           
            submitHandler: function(form) {
                form.submit();
            }