validation for minimum digits requirements