add validation to title