title: Uncaught TypeError: Cannot read property 'length' of undefined , using react and redux-form validation
body: <p>I am using redux-form and react here and trying to use validation. I have it all working but for some reason when I try to validate that a field must be a certain length property I get:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'length' of undefined
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>import React, { Component } from 'react';
  import {Field, reduxForm} from 'redux-form';
  
  class PostsNew extends Component {
    constructor(props) {
      super(props);
  
      this.onSubmit = this.onSubmit.bind(this);
    }
  
    renderField(field) {
      return (
        &lt;div className="form-group"&gt;
          &lt;label&gt;&lt;strong&gt;{field.label}:&lt;/strong&gt;&lt;/label&gt;
          &lt;input
            className="form-control"
            type="text"
            {...field.input}
          /&gt;
          {field.meta.touched ? field.meta.error : ''}
        &lt;/div&gt;
      )
    }
  
    onSubmit(values) {
      console.log(values);
    }
  
    render() {
      const { handleSubmit } = this.props;
  
      return (
        &lt;form onSubmit={handleSubmit(this.onSubmit)}&gt;
          &lt;Field
            label="Title for Post"
            name="title"
            component={this.renderField}
          /&gt;
          &lt;Field
            label="Categories"
            name="categories"
            component={this.renderField}
          /&gt;
          &lt;Field
            label="Post Content"
            name="content"
            component={this.renderField}
          /&gt;
          &lt;button type="submit" className="btn btn-success"&gt;Submit&lt;/button&gt;
        &lt;/form&gt;
      );
    }
  }
  
  function validate(values) {
    const errors = {};
  
    //Validate the inputs from values
    if(!values.title) {
      errors.title = "Enter a title!";
    }
    if(!values.categories) {
      errors.categories = "Enter some categories!";
    }
  
    if(!values.content) {
      errors.content = "Enter some content please!";
    }
  
    if(!values.content.length &lt; 20) {
      errors.content = "Content must be longer than 3 characters!";
    }
    //If errors is empty, the form is fine to submit
    //If errors has any properties, redux form assumes form is invalid
    return errors;
  }
  
  export default reduxForm({
    validate,
    form: 'PostsNewForm'
  })(PostsNew);
  </code></pre>