Added a submit form and sent to server using AJAX