Not sure I understand - I've connected to the 'login' and 'logout' events in the modified demo_common/main.js