adding Error handling in node.js post