Bugfix: uniqueness validation route should check if the document being validated is the one found.