Cleanup and validation on adding a todo