Typos fix - `existant` -> `existent`, and `midleware` -> `middleware`