Why are the changes being made on the form not appearing on submission?