accept username password
added cli.js for easy use on command-line