add validate duplicate records method