password validator validates long password and invalidates short one