Added some validation to todo items