split length validation in two parts (max / min)