aded charLength validator