separating validation from handler to its own validation handler when creating todo tasks