add validation for threshold scheme