expose login/logout.  set prefs.