title: I want to validate password using react with ant design
body: <p>I want to validate password using ant design with react. But, ant design doesn't have any validation.How can I do that ? Please help me.</p>
  
  <pre><code> const LoginForm = Form.create()(props =&gt; {
    const { getFieldDecorator } = props.form;
    return (
      &lt;Form onSubmit={props.onSubmit} className="form-size form-margin"&gt;
        &lt;FormItem&gt;
          {getFieldDecorator("email", {
            rules: [
              {
                type: "email",
                message: "The input is not valid E-mail!"
              },
              { required: true, message: "Please input your username!" }
            ]
          })(&lt;Input placeholder="Email" /&gt;)}
        &lt;/FormItem&gt;
        &lt;FormItem&gt;
          {getFieldDecorator("password", {
            rules: [{ required: true, message: "Please input your Password!" }]
          })(&lt;Input type="password" placeholder="Password" /&gt;)}
        &lt;/FormItem&gt;
        &lt;FormItem&gt;
          &lt;Button type="primary" htmlType="submit" className="login-form-button"&gt;
            Log in
          &lt;/Button&gt;
        &lt;/FormItem&gt;
        &lt;span style={{ color: "red" }}&gt;
          {props.loginStatus ? "" : props.loginMessage}
        &lt;/span&gt;
      &lt;/Form&gt;
    );
  });
  </code></pre>