Logout from different page issue fix