Changed the success ajax response, now a new functionm will be called
which be reset the form.