Updated login event to change the sidebar