logged in/out pref set

resolved a bug with logged in/out preference not being set correctly,
leads to app crash