Add erequired and emultiple middleware.