authenticate: empty user/password bugfix

When pass an empty user/password the callback must be passed with an error. But it's not defined.
Merge pull request #1 from dgmike/patch-2

authenticate: empty user/password bugfix