Added validations for todo items