Postgresql function to validate a yubikey OTP