Update twoFactor check

For https://github.com/waltzio/waltz/issues/252