Implemented duplicate checking for transaction entry.