Adding logout functions