added the ajax to the form submission
fix form