Moved auth as a middleware and integration of manage problems page