Saving userdefaults and fixing form issues