Switch Login/Logout depend on status.