reconfigured routes and update oAuth to persist users