Made with help of: (Easy Node Authentication)[http://scotch.io/tutorials/javascript/easy-node-authentication-setup-and-local]