fix real time login and lougout events - store active users in app.locals var