Add setPreference method on user instance