Checking possible duplication and avoid some entered values "null"

Hello Dears,

I have two columns to collect the ID number for beneficiaries according to their nationality, which means these two columns have some "null" values.

I need a display condition formula to help me trigger a label containing the message "This ID number already exists on the database" and avoid "null" values" as duplication at the same time.

Thanks in advance