login and logout with access token

Reworked User login and logout to work with access token properly.