Password minimum length in personal subscription [closed]

You need to use strlen() to determine the length of a variable, so your second if condition is invalid.

As it is, this question is not really related to WordPress, so likely off-topic.