added realtime notifications for logging in and out