title: Symfony2 Authentication "login_check" path not found
body: <p>I'm new to Symfony2 and I'm trying to create a basic registration + login system. So, with the help of the Symfony2 documentation I created this security.yml:</p>
  
  <pre><code>security:
      encoders:
          TestCompany\InternetBundle\Entity\Member:
              algorithm:        sha1
              encode_as_base64: false
              iterations:       1
  
      role_hierarchy:
          ROLE_ADMIN:       ROLE_USER
          ROLE_SUPER_ADMIN: [ ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ]
  
      providers:
          administrators:
              entity: { class: TestCompanyInternetBundle:Member, property: username }
  
      firewalls:
          admin_area:
              pattern:    ^/admin
              anonymous: ~
              form_login:
                  login_path:  /login
                  check_path:  /login_check
  
      access_control:
          - { path: ^/admin, roles: ROLE_ADMIN }
  </code></pre>
  
  <p>and I used this routing for it:</p>
  
  <pre><code>login_check:
      pattern:   /login_check
  login:
      pattern:  /login
      defaults: { _controller: TestCompanyInternetBundle:Admin:login }
  </code></pre>
  
  <p>According to <a href="http://symfony.com/doc/current/book/security.html#using-a-traditional-login-form" rel="nofollow">http://symfony.com/doc/current/book/security.html#using-a-traditional-login-form</a> I do NOT need to implement a controller for the login_check route. Yet, Symfony returns this error to me: </p>
  
  <pre><code>Unable to find the controller for path "/login_check". Maybe you forgot to add the matching route in your routing configuration?
  </code></pre>
  
  <p>Do you see anything I could have done wrong here? The login page is almost an exact copy of the one used in the documentation. The error occurs on the page: <code>http://localhost/SymfonyTest/web/app_dev.php/login_check</code>, which is the page I get sent to after using the login form.</p>