Conditional password length validation for migrated users