Added spinner when form is submitted