Added title length validation