Checks the input against the given conditions
@override bool isValid(String? value) => value!.length <= max;