added title length validation