why validating twice for  lockinPeriodFrequencyType and lockinPeriodFrequency ?