modified session controller to run authentication for local env