Names must not be empty and must be unique.