fixed user model password length validation error

syntax in password length validation was old and incorrect