store and retrieve logged in user info in sharedPreference.