added max length validation for datatables