vault: Use proper way to submit cooking task creation form
This reverts commit 07a63d61 and use proper way to submit vault task creation form when hitting the enter key on a form element: add an onsubmit event handler to the form.
Fixes #4752 (closed).