Fixes to validate: minLength, maxLength, Fixes to messages: format->replace, rules