Update routes and login user after registration