Added logging in case of failed login
Preparations for release 1.3.