Bug fix - able to log on it getConnection fails

if an error is thrown in getConnection and no password was entered a
fake user of any name could log on.