Checking unique constraint on client