How to prevent duplicated entry or unique a field?

I have a collection of contacts and I want to ensure that each entry has a unique ‘Name’ and ‘Email’ field.

Is it possible to prevent user from submitting the same Name or Email?

Where can I set unique to text fields like Name and Email?