why do you need to wait for login event here? isn't it already logged in?