fixed the logout redirect