Distributors: fixed name validation on save

Distributors couldn't be updated due to problem with the validation.