Use User class in XMPP protocol