         }
     }
     
-    func checkCodeMessageShowAlert(code: String?, codeInputView: CodeInputView){
-        if let codeMessage = code {
+    func checkCodeMessageShowAlert(message: String?, serverMessageCode: String?, codeInputView: CodeInputView){
+        if let codeMessage = serverMessageCode,
+            let serverMessage = message {
             if codeMessage == YonaConstants.serverCodes.tooManyResendOTPAttemps {
                 //make sure they are never on screen at same time
                 self.resendCodeButton.hidden = false
                 self.pinResetCodeButton.hidden = true
                 self.codeInputView?.userInteractionEnabled = false
                 #if DEBUG
-                    self.displayAlertMessage("App blocked too many OTP attempts, press resend", alertDescription:"")
-                    self.displayAlertMessage("", alertDescription: NSLocalizedString("smsvalidation.user.pincodeattempted5times", comment: ""))
+                    self.displayAlertMessage("", alertDescription: serverMessage)
                 #endif
             }//too many pin verify attempts so we need to clear and the user needs to request another one
             else if codeMessage == YonaConstants.serverCodes.tooManyPinResetAttemps {

                } else {
                    //pin reset verify code is wrong
                    dispatch_async(dispatch_get_main_queue()) {
                        self.checkCodeMessageShowAlert(code, codeInputView: codeInputView)
                        codeInputView.clear()

                    }

                self.pinResetCodeButton.hidden = false
                self.codeInputView?.userInteractionEnabled = false
                #if DEBUG
                    self.displayAlertMessage("", alertDescription: serverMessage)
                #endif
                APIServiceManager.sharedInstance.pinResetClear({ (success, pincode, message, servercode) in
                    if success {
