Unable to save changes made in the form