Fix bugs in edit forms

Keep edit form open if invalid, etc
Merge branch 'master' of https://github.com/vtsprt/purf