Prevent duplicates from being saved