Why changes to my form are being reverted?