Fixed AJAX submission and checking of response form