Token auth and solved session problems