Fixing up password length detection logic a bit for BZ 1127124