Fixing login/logout showing at same time