logout Bug fixed