Add length and presence validation to todo list item