make sure the title is not null