Fixes #4347: correct detection of empty password/username
Merge pull request #267 from ncharles/bug_4347/dev/correct_detection_of_empty_name_password

Fixes #4347: correct detection of empty password/username