Card #48 fix for logout