Add login/logout logging in guard plugin