added isolation for auth token

The auth token is stored in memory after the login call is over. Todo:
exception handling for login