logout now uses json node