Unable to save the changes on my form properly