     var loadingActivityIndicator: NVActivityIndicatorView!
     var loginBackgroundGradientView: LoginBackgroundGradientView!
     var podcastLogoView: LoginPodcastLogoView!
-    var mainView: UIView!
     
     
     //Constants

        loginBackgroundGradientView = LoginBackgroundGradientView(frame: view.frame)
        view.addSubview(loginBackgroundGradientView)
        
        mainView = UIView(frame: view.frame)
        view.addSubview(mainView)
        
        loginButton = GIDSignInButton()
        loginButton.style = .wide
        loginButton.frame.origin.y = loginButtonViewY
        loginButton.center.x = view.center.x
        loginButton.addTarget(self, action: #selector(loginButtonPressed), for: .touchUpInside)
        mainView.addSubview(loginButton)
        
        podcastLogoView = LoginPodcastLogoView(frame: CGRect(x: 0, y: podcastLogoViewY, width: view.frame.width, height: view.frame.height / 4))
        podcastLogoView.center.x = view.center.x
        mainView.addSubview(podcastLogoView)
        
        loadingActivityIndicator = createLoadingAnimationView()
        loadingActivityIndicator.center = view.center
        loadingActivityIndicator.color = .offWhite
        mainView.addSubview(loadingActivityIndicator)
        
        mainView.isHidden = true //hide everything but gradient until sign in silently fails
        
        signInSilently()
    }

        
        guard error == nil else {
            print("\(error.localizedDescription)")
            loginButton.isHidden = false
            loadingActivityIndicator.stopAnimating()
            self.loginButton.isHidden = false
            return
