change log out mechanism