Replaces deprecated MinLength MaxLength validators

MinLength and MaxLength validators are deprecated since version 2.1 and will be removed in 2.3. Using Length validator instead.