Check for duplicacy

Check for duplicacy

Hi,
     I have created a form, in that there is a field called "UID" thats get generated once I submit the form. I want to avoid the duplicacy for the "UID" field, how should I avoid it.

RGDS

Himanshu