     //MARK: - State Management
     private func validateFormItems() {
         var formIsValid = true
-        
+
         if serverURL == nil || (serverURL?.isEmpty)! {
             formIsValid = false
         }
-        
+
         if email?.range(of: "@") == nil || email?.range(of: ".") == nil {
             formIsValid = false
         }
-        
+
         if password == nil || (password?.isEmpty)! {
             formIsValid = false
         }
-        
+
         if isRegistering && password != confirmPassword {
             formIsValid = false
         }
-        
+
         footerView.isSubmitButtonEnabled = formIsValid
     }
-        
+
     //MARK: - Scroll View Delegate
     
     public func scrollViewDidScroll(_ scrollView: UIScrollView) {
-        
+
         if UIApplication.shared.isStatusBarHidden {
             navigationBar.alpha = 0.0
             return
         }
-        
+
         let statusBarFrameHeight = UIApplication.shared.statusBarFrame.height
         navigationBar.frame.size.height = statusBarFrameHeight
-        
+
         // Show the navigation bar when content starts passing under the status bar
         let verticalOffset = scrollView.contentOffset.y
-        
+
         if verticalOffset >= -statusBarFrameHeight {
             navigationBar.alpha = 1.0
         }

    }
    
    //MARK: - View Management
    
    override public func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .clear

        else {
            navigationBar.alpha = 1.0 - ((abs(verticalOffset) - statusBarFrameHeight) / 10.0)
        }

        // Offset the copyright label
        let normalizedOffset = verticalOffset + scrollView.contentInset.top
        copyrightView.frame.origin.y = (view.bounds.height - copyrightViewMargin) - normalizedOffset
    }

    //MARK: - Table View Data Source

    public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return isRegistering ? 5 : 4
    }
