fixed bug with password length fetch mechanism, as well as implementing
fail safe if no password length selected