move the declaration of SharedPreferences to onCreateView() on AuthFragment;