Javascript credential/registration verification.