                 keyboardType = .emailAddress
             case .password:
                 placeholder = "password-placeholder".localized
-                isSecureTextEntry = true
+                if #available(iOS 11.0, *) {
+                    textContentType = .password
+                }
+            case .newPassword:
+                placeholder = "password-placeholder".localized
                 if #available(iOS 12.0, *) {
                     textContentType = .newPassword
                 }
             case .unknown:
                 break
             }
+            
+            isSecureTextEntry = textType.isPassword
         }
     }
     

            switch textType {
            case .name:
                placeholder = "name-placeholder".localized
                textContentType = .name
                keyboardType = .default
            case .lastName:
                placeholder = "lastname-placeholder".localized

        case lastName
        case email
        case password
        case newPassword
        
        fileprivate var isPassword: Bool {
            switch self {
            case .newPassword, .password: return true
            default: return false
            }
        }
    }
    
    public var textType: TextType = .unknown {
