implement SharedPreferences to store and retrieve the token to access the restful API;