Added validation for title length