Added a loader when submitting the form