Is it possible to validate the data to avoid duplication?