Corrected routes and sessions controller