Update dynamic_proxy.js

adding validations in post