Add new route to handle edit mode form submission
Fix syntax error