Added auth middleware.