Added $.ajax POST method to form submission