fixed logout error while admin click on logout