Added validation for title presence and legnth