Working out things in sending ajax based form validation