Content disappears when user encounters an error when submitting