adds logic around hidden form field for edit.
Merge pull request #22 from JamieMcKenzie/fixing_edit_form

adds logic around hidden form field for edit.