Only submit form if there's a title entered