MT#10309 Allow passwords with less than chars.

(cherry picked from commit a431f6bf797498f6d6a9b3ecc8408abcf09a5bdf)