updated validation to prevent duplication of a contact