in submit function, if req.body.Model is not defined, then exit