Checks for duplicate entries