Database Duplicate Error

I have created a basic social media site in wix.

I have make a database where people fill out the page to be used on there profile page, I have also set up a dynamic page that uses a part of the database as the url u/{handel]

I am now wondering how I now bring up an error message if someone fills out the handle so that if someone tries to add the same info it wont be allowed.

for example if I out my username {handel] to my username beitmenotyou someone else can’t then use beitmenotyou as well so that it does not confuse the site by having the same url more then once


Handle connects to username


Witch is then used as URL

https://www.wix.com/code/home/forum/wix-tips-and-updates/example-no-database-duplicates

https://codequeen.wixsite.com/membership-dashboard

https://www.youtube.com/watch?v=yLCOqsVHhD0&feature=youtu.be
(video for above membership dashboard)

Thanks, I’ll check it out