Updated form to preserve user input if the submission contains errors