Creating the setToken and getToken functions