if user is logged in adding token to the REST calls