Fixing name uniqueness validation where update requests were failing because of a missed clause.

The clause should also verify that the retrieved record's id does not match the record id being updated