title: symfony 2.8 FOSUserBundle legacyFormHelper: get input field of form in twig template
body: <p>I am trying to restyle the register form of the FOSUserBundle,
  i try to putt the input in my template line by line like this.</p>
  
  <pre><code>{{ form_widget(form.username) }}
  {{ form_widget(form.first_name) }}
  </code></pre>
  
  <p>This works, but when i try to do this with the password en confirmation password it doesn't work.</p>
  
  <p>Here is the line of the form builder:</p>
  
  <pre><code>-&gt;add('plainPassword', LegacyFormHelper::getType('Symfony\Component\Form\Extension\Core\Type\RepeatedType'), array(
          'type' =&gt; LegacyFormHelper::getType('Symfony\Component\Form\Extension\Core\Type\PasswordType'),
          'options' =&gt; array('translation_domain' =&gt; 'FOSUserBundle'),
          'first_options' =&gt; array('label' =&gt; 'form.password'),
          'second_options' =&gt; array('label' =&gt; 'form.password_confirmation'),
          'invalid_message' =&gt; 'fos_user.password.mismatch',
  </code></pre>
  
  <p>I try to put it in the temlate like this:</p>
  
  <pre><code>{{ form_widget(form.plainPassword) }}
  {{ form_widget(form.password_confirmation) }}
  </code></pre>
  
  <p>but it is not working, i tried some other things also but i cant figure it out.</p>
  
  <p>Thanks in advance.</p>