title: How do I set a custom validation error on a specific form field in Play! 2.*
body: <p>Basically I have a following form class.</p>
  
  <pre><code>public static class BasicForm {
      @Required
      public String name;
      @Required
      @Email
      public String email;
      @Required
      public String password;
      @Required
      public String confirmPassword;
  
      public List&lt;ValidationError&gt; validate() {
          if (User.findByEmail(email) != null) {
              List&lt;ValidationError&gt; validationErrorList = new ArrayList&lt;ValidationError&gt;();
              validationErrorList.add(new ValidationError("email", "error.alreadyexists", new ArrayList&lt;Object&gt;()));
              return validationErrorList;
          }
          return null;
      }
  
  }
  </code></pre>
  
  <p>As you can see, I am trying to validate the uniqueness of the email address.
  If email is not unique, <strong>I would like to display the error message on the email field, NOT as a global error message</strong></p>
  
  <p>What is the correct way of implementing validate() method to achieve this?</p>