created a check to see if the title is set