Each user of my app can select what is essentially a username. I’ve gone through posts like this one from 2018, and I understand the concept, but I don’t need the live validation or to store duplicates of each username because they’re always converted to all lowercase before being entered in the database.
I’d like to not allow the user to submit the form if their username matches one in the database. What logic do I need to add to the workflow for this to happen?