Add AuthenticationMiddleware class