Middlewares for controllers implemented