Now properly fetches a token for the user, stores it in shared preferences.