title: Alternative solution for custom Vtype?
body: <p>i was trying to use a Custom Vtype in my program. Here many tried to help me. But i could not get much benefit from those. This was my code.</p>
  
  <pre><code>Ext.apply(Ext.form.VTypes, {
  password: function(val, field) {
  if (field.initialPassField) {
  var pwd = Ext.getCmp(field.initialPassField);
  return (val == pwd.getValue());
  }
  return true;
  },
  passwordText: 'What are you doing?&lt;br/&gt;The passwords entered
  do not match!'
  });
  </code></pre>
  
  <p>I included this code in "launch" function of Application and changed vtype to 'password'. it worked.is it the right method? however i got the result. If im wrong and some other method is available please inform me. This is my launch function in Application.</p>
  
  <pre><code>Ext.Loader.setConfig({
  enabled: true
  });
  
  Ext.application({
  views: [
  'signupForm'
  ],
  autoCreateViewport: true,
  name: 'MyApp',
  
  launch: function() {
  Ext.apply(Ext.form.VTypes, {
  password: function(val, field) {
  if (field.initialPassField) {
  var pwd = Ext.getCmp(field.initialPassField);
  return (val == pwd.getValue());
  }
  return true;
  },
  passwordText: 'What are you doing?&lt;br/&gt;The passwords entered do not match!'
  });
  }
  
  });
  </code></pre>
  
  <p>Thank you</p>