Fixed authentication error handling.
Version 1.1.1