Fixed #6, add minlimit and maxlimit rule, and fixed minlength and maxlength rule.