Why the form is not saving latest changes?