         let tapRecognizer = UITapGestureRecognizer(target: self, action: "handleTap:")
         view.addGestureRecognizer(tapRecognizer)
         
-        defaultTransform = self.imageView.transform
+        spinnerBaseTransform = self.imageView.transform
         
         facebookButton.delegate = self
     }

    
    private var viewShiftDistance: CGFloat? = nil
    
    private var networkActivityInProgress = false
    private var defaultTransform: CGAffineTransform?
    
    // MARK: ViewController Lifecycle
    

    func networkActivity(active: Bool) {
        dispatch_async(dispatch_get_main_queue()) {
            UIApplication.sharedApplication().networkActivityIndicatorVisible = active
            self.activityInProgress = active
            self.usernameTextField.enabled = !active
            self.passwordTextField.enabled = !active
            self.loginButton.enabled = !active
            self.signupButton.enabled = !active
            if (active) {
                self.animate()
            } else if let transform = self.spinnerBaseTransform {
                self.imageView.transform = transform
            }
        }
    }
    
    func animate() {
        dispatch_async(dispatch_get_main_queue()) {
            UIView.animateWithDuration(0.001,
                delay: 0.0,
                options: UIViewAnimationOptions.CurveEaseInOut,
                animations: { self.imageView.transform =
                    CGAffineTransformConcat(self.imageView.transform, CGAffineTransformMakeRotation((CGFloat(60.0) * CGFloat(M_PI)) / CGFloat(180.0)) )},
                completion: { something in
                    if self.activityInProgress {
                        self.animate()
                    } else {
                        // TODO: this snaps to position at then end, we should perform the final animation.
                        self.imageView.transform = self.spinnerBaseTransform
                    }
            })
        }
    }

    
    func resetLoginStatusLabel() {
        loginStatusLabel?.text = ""
