Fix bug with adding empty todo.
Change error check in delete function.
Enable editing todo item.