A maintainable and flexible password validator.