How to determine the minimum number of inputs for some fields in the form?