Fixes login / logout when HTTP Basic Headers are avilable.