Tries to regenerate finds ID twice after delay.
Also handles db errors by repopulating form so users don't lose their work.
Minor change to comment