EventHandler and loginEvent