Getting token from wrong place