fixes lingering login/logout issue