Implemented HOTP and TOTP validation