Re-implemented reset_authentication_token

In respect of an unclean logout process
we reset the token on sign in and sign out