Save settings in UserDefaults.