updates routes
fixes logout logic