Setup token and session