improving security in module, allowing more inaccuracy for posting in newpost.js