fix bug

req.route.path is undefined
body.split  length ==3 always
when i logout will error msg can't set header after they are send