User authentication

Authentication mechanism requires two parameter err and user - https://github.com/node-xmpp/node-xmpp-server/blob/master/lib/authentication/mechanism.js
When err is null, user must not be null for successful authentication.