I have a form with some input fields and when you click on Save, I do a check if a field already exist in the database. I have a service method for this.
For example