ValidatorTest: Fixed username validator test. Refs #2087
Validator: field is optional if has maxLength >= 0 validator. Refs #1753