Why editing of form is not saving?