Slightly beter handling of TOTP challenge code.

This would previously give errors if the user entered a non-numeric TOTP code.
Merge pull request #6 from mrmonday/totp-challenge-validation

Slightly beter handling of TOTP challenge code.