How to prevent duplicate entries in my form?