Adding fix to unique constraint validation on update.