added extra length validation for title