Add support for defining a custom password strength validator.