Added length and presence validation to the todo title