Submitting the form using ajax