added title validation