How can I set up the form to avoid duplicate entries?