     }
 
     func showTwoFactorViewController() {
-        guard let presenter = presentingViewController else {
+        guard
+            let presenter = presentingViewController,
+            let twoFactorViewController = WMFTwoFactorPasswordViewController.wmf_initialViewControllerFromClassStoryboard()
+        else {
+            assert(false, "Expected view controller(s) not found")
             return
         }
         dismiss(animated: true, completion: {
-            let twoFactorViewController = WMFTwoFactorPasswordViewController.wmf_initialViewControllerFromClassStoryboard()
-            twoFactorViewController?.userName = self.usernameField!.text
-            twoFactorViewController?.password = self.passwordField!.text
-            let navigationController = UINavigationController.init(rootViewController: twoFactorViewController!)
+            twoFactorViewController.userName = self.usernameField!.text
+            twoFactorViewController.password = self.passwordField!.text
+            let navigationController = UINavigationController.init(rootViewController: twoFactorViewController)
             presenter.present(navigationController, animated: true, completion: nil)
         })
     }

    func createAccountButtonPushed(_ recognizer: UITapGestureRecognizer) {
        guard
            recognizer.state == .ended,
            let presenter = presentingViewController else {
                return
        }
        funnel?.logCreateAccountAttempt()
        dismiss(animated: true, completion: {
            let createAcctVC = WMFAccountCreationViewController.wmf_initialViewControllerFromClassStoryboard()
            createAcctVC?.funnel = CreateAccountFunnel()
            createAcctVC?.funnel?.logStart(fromLogin: self.funnel?.loginSessionToken)
            let navigationController = UINavigationController.init(rootViewController: createAcctVC!)
            presenter.present(navigationController, animated: true, completion: nil)
        })
    }

    func forgotPasswordButtonPushed(_ recognizer: UITapGestureRecognizer) {
        guard
            recognizer.state == .ended,
            let presenter = presentingViewController,
            let forgotPasswordVC = WMFForgotPasswordViewController.wmf_initialViewControllerFromClassStoryboard()
        else {
            assert(false, "Expected view controller(s) not found")
            return
        }
        dismiss(animated: true, completion: {
            let navigationController = UINavigationController.init(rootViewController: forgotPasswordVC)
            presenter.present(navigationController, animated: true, completion: nil)
        })
    }
