fixed package.json for node 0.10
added login failure handling in test.js