Added spin loading indicator when submitting the form