Adding title validation