fix up some totp conditionals

Stepped across these while debugging my code for my previous patch.