add validation rules on flags