Capture login/logout events