checkPassword() is now async (requires a callback)
fix sample to not require separate "npm install"