Is there a way to validate a duplicate field value in a primary key before getting an error or at least replacing the yellow error box with a more user friendly message?