title: validating fosuserbundle registration form
body: <p>I am using FOSUserBundle.
  In my project, I created my own UserBundle and overrode the controller, the forms and the handlers.
  Now when a user tries to register with an existing email, the site crashes (email is unique for doctrine). It seems like there is no validation made.
  I thought there would be some validation as I have in my validation.yml:</p>
  
  <pre><code>YOP\UserBundle\Entity\User:
    constraints:
      - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: email
    properties:
      email:
        - Email: ~
  </code></pre>
  
  <p>How come the validation isn't made on the email field?
  How can I make sure that my validation constraints are taken into account?</p>
  
  <p>PS: the validation.yml file is not in my UserBundle, is that a problem?</p>
  
  <p>EDIT:</p>
  
  <p>the code of my UserBundle is available <a href="https://github.com/marronsuisse/yourownpoet/tree/master/src/YOP/UserBundle" rel="nofollow">here</a>
  I don't understand why there is no validation done anymore...</p>