fix typos and validation errors.