make logout injectable