add title length validation