Enable instant login API & added events for login/logout