adding validation for duplicate design codes