add validation to todo list items