Fixing configuration validation error messages.

The min and max validation functions lead to incorrect error messages.