totp_validate: update API to match the return type of hotp_validate