adding title validation