Added RequireLoginMiddleware.