updated middlewares to use json/urlencoded from bodyParser