validate category type