Add password length validation.

Added password length validation.