     static let back = #selector(LoginViewController.backToSettings(_:))
 }
 
-
+//MARK: - KeyboardProtocol Methods
 extension LoginViewController: KeyboardProtocol {
     func keyboardWasShown (_ notification: Notification) {
-        
         guard let keyboardSize = (notification.userInfo?[UIKeyboardFrameBeginUserInfoKey] as? NSValue)?.cgRectValue else { return }
-        
-        
         if let activeField = self.pinResetButton {
             let contentInsets = UIEdgeInsets(top: 0.0, left: 0.0, bottom: keyboardSize.height, right: 0.0)
             self.scrollView.contentInset = contentInsets

            self.pinResetButton.setTitleColor(UIColor.yiGrapeColor(), for: UIControlState())
        }
        pinResetButton.layer.cornerRadius = pinResetButton.frame.size.height/2
        //        pinResetButton.layer.borderWidth = 1
    }
    
    @IBAction func pinResetTapped(_ sender: UIButton) {
        weak var tracker = GAI.sharedInstance().defaultTracker
        tracker!.send(GAIDictionaryBuilder.createEvent(withCategory: "ui_action", action: "pinResetTapped", label: "Reset the pin button pressed", value: nil).build() as! [AnyHashable: Any])
        
        self.pinResetTapped()
    }
    

        })
    }
    
    fileprivate func showMaxLoginAttemptsReachedScreen() {
        let defaults = UserDefaults.standard
        defaults.set(true, forKey: YonaConstants.nsUserDefaultsKeys.isBlocked)
        defaults.synchronize()
        errorLabel.isHidden = false
        self.navigationItem.title = NSLocalizedString("login", comment: "")
        self.codeInputView.resignFirstResponder()
        self.pinResetButton.isHidden = false
        self.codeInputView.isHidden = true
        self.accountBlockedTitle?.isHidden = false
        self.infoLabel?.isHidden = true
        self.setCornerRadius()
        avtarImage.image = UIImage(named: "icnSecure")
        errorLabel.text = NSLocalizedString("login.user.errorinfoText", comment: "")
    }
    
    func codeInputView(_ codeInputView: CodeInputView, didFinishWithCode code: String) {
        let passcode = KeychainManager.sharedInstance.getPINCode()
        if code ==  passcode {
