Validate composer.json and fix typo.