Add edit() POST method.
Fix error