Added some validations to todo items