Added validation for todo list title and description and fixed deprecation errors.