Add config detection to logout aswell