Add hash check to prevent resubmit

* Some user has reported resubmmiting causing duplication without
  displaying the alert. I've added a hash to prevent this from
  happening. The alert still shows.

* Note, the patch file should be run on the db server if you've got
  data.