fixed the logout