removed next(err) changed it to res.send(404)