refactored sharedPreferences acces (loginActivity was not using AppData)