add backend to record user email with prefs