Improved logging of smack authentication errors #1