added validation for check type