when creating a gallery its name must not be empty