         }
         
         //keyboard functions
-        let notificationCenter = NSNotificationCenter.defaultCenter() 
+        let notificationCenter = NSNotificationCenter.defaultCenter()
         notificationCenter.addObserver(self, selector: Selector.keyboardWasShown , name: UIKeyboardDidShowNotification, object: nil)
         notificationCenter.addObserver(self, selector: Selector.keyboardWillBeHidden, name: UIKeyboardWillHideNotification, object: nil)
     }

    
    
    override func viewDidAppear(animated: Bool) {
//        if NSUserDefaults.standardUserDefaults().boolForKey(YonaConstants.nsUserDefaultsKeys.isBlocked) == false {
//            self.codeInputView.becomeFirstResponder()
//        }
        if isFromSettings {
            codeInputView.becomeFirstResponder()
            closeButton  = UIBarButtonItem(image: UIImage(named: "icnBack"), style: UIBarButtonItemStyle.Plain, target: self, action: #selector(LoginViewController.backToSettings(_:)))

        
        if !isFromSettings {
            //Get user call
            self.closeButton?.enabled = false
            self.closeButton?.tintColor = UIColor.clearColor()
            checkUserExists()
