fix history authentication, add logout