title validation and functionality