add validation of title length