added client validation to create todo form.