I have a custom form that would create user. The form is rendered with Form API and is using PasswordConfirm element, but it doesn't seem to validate the password against the default password rules (e.g. number of characters, combinations of characters).
How do I apply the default Drupal password rules to my custom form's password confirm field in the form validation method?