NPE fix (#44)

Logging password length might be insecure.