If you want to validate that a user has added a record, there are multiple ways to do this:
You could for instance include a boolean attribute ‘isNew’ on the entity that is displayed and of which one needs to be entered, and when a user submits the data, check if there is at least 1 object where isNew = true. If it passes this requirement, update the objects to isNew = false.
Be sure not to commit the record(s) before, as this might cause conflicts when multiple people are performing this task.
Good luck!
Can you be more specific with your question?