Editing form and Save is not working properly