Edit routes
Fix log in and out functionality