password length fix

Here is a fix for password length optional parameter