testing password check with js