add validation to title length