add logout utitility