A multi-policy password validation tool for node.js and the browser