custom events to track login status