added validation to have at least 1 traits to be measured