title: React ant design form validation not working (on submit)
body: <p>When i press submit and if there is nothing filled in email/password a message should appear beneath them saying email/password is required but its not happnening</p>
  <p>Code Sandbox Link: <a href="https://codesandbox.io/s/gracious-hypatia-ieepw?file=/src/App.js:0-1221" rel="nofollow noreferrer">https://codesandbox.io/s/gracious-hypatia-ieepw?file=/src/App.js:0-1221</a></p>
  <pre><code>import './App.css';
  import {Button, Form, Input, Checkbox} from 'antd'
  import 'antd/dist/antd.css';
  
  function App() {
    return (
      &lt;div className=&quot;App&quot;&gt;
        
    &lt;Form
        name=&quot;basic&quot;
        initialValues={{
          remember: true,
        }}
      &gt;
        &lt;h1 className=&quot;Title&quot;&gt;Sign Up&lt;/h1&gt;
        &lt;h2 className=&quot;Text&quot;&gt;Enter Email :&lt;/h2&gt;
        &lt;Form.Item
          rules={[
            {
              required: true,
              message: 'Please input your email!',
            },
          ]}
        &gt;
          &lt;Input placeholder=&quot;Enter Email&quot; /&gt;
        &lt;/Form.Item&gt;
        &lt;h2 className=&quot;Text&quot;&gt;Enter Password :&lt;/h2&gt;
        &lt;Form.Item
          rules={[
            {
              required: true,
              message: 'Please input your password!',
            },
          ]}
        &gt;
          &lt;Input.Password placeholder=&quot;Enter Password&quot; /&gt;
        &lt;/Form.Item&gt;
  
        &lt;Form.Item  name=&quot;remember&quot; valuePropName=&quot;checked&quot;&gt;
          &lt;Checkbox&gt;Remember me&lt;/Checkbox&gt;
        &lt;/Form.Item&gt;
  
        &lt;Form.Item &gt;
          &lt;div className=&quot;Button&quot;&gt;
          &lt;Button type=&quot;primary&quot; htmlType=&quot;submit&quot; size=&quot;medium&quot;&gt;
            Submit
          &lt;/Button&gt;
          &lt;/div&gt;
        &lt;/Form.Item&gt;
      &lt;/Form&gt;
      &lt;/div&gt;
    );
  }
  
  export default App;```
  
  </code></pre>