Corrected checking if title was submitted