<div class="register">
  <form action="{{ path('register') }}" {{ form_enctype(form) }} 
    method="POST" 
    class="fos_user_registration_register"
  >
        
    {% form_theme form 'MuzichCoreBundle:Form:errors.html.twig' %}
    
    {{ form_errors(form) }}
    
    {% if registration_errors_pers|length > 0 %}
    <ul class="error_list">
      {% for error in registration_errors_pers %}
        <li>{{ error }}</li>
      {% endfor %}
    </ul>
    {% endif %}
    
    <div class="field">
      {{ form_errors(form.username) }}
      {{ form_label(form.username, 'username'|trans({}, 'userform')) }}
      {{ form_widget(form.username) }}
    </div>   
        
    <div class="field">
      {{ form_errors(form.email) }}
      {{ form_label(form.email, 'email'|trans({}, 'userform')) }}
      {{ form_widget(form.email) }}
    </div> 
    
    <div class="field">
      {{ form_errors(form.plainPassword.first) }}
      {{ form_label(form.plainPassword.first, 'password.first'|trans({}, 'userform')) }}
      {{ form_widget(form.plainPassword.first) }}
    </div> 
    
    <div class="field">
      {{ form_errors(form.plainPassword.second) }}
      {{ form_label(form.plainPassword.second, 'password.second'|trans({}, 'userform')) }}
      {{ form_widget(form.plainPassword.second) }}
    </div> 
    
    <span class="help">{{ 'help.token'|trans({}, 'userform') }}</span>
    
    <div class="field">
      {{ form_errors(form.token) }}
      {{ form_label(form.token, 'token'|trans({}, 'userform')) }}
      {{ form_widget(form.token) }}
    </div> 

    {{ form_rest(form) }}
    
    <div>
        <input type="submit" class="button" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" />
    </div>
  </form>
</div>