add validations

please change the form name to "createTodoForm". use proper camelcasing.