Magento 2 – Hide or remove category form after verification on admin

I want to hide OR remove category form after a verification

Category form - Magento 2

So, I succeed to hide it by creating category_form.xml on view\adminhtml\ui_component

but I want to add a verification if it’s correct I need to hide the form if not no change should occur.

is there any solution ?