Updated the template to submit the form