adds a validation of size for min/max length
adds a spec for the validation of size of min/max length