Improve validation of title.