title: Symfony2- Login Form appears again after logged in
body: <p>Hi stackoverflow friends,</p>
  
  <p>I have an instance that ,In symfony2 I created a security bundle (not used FOS USER BUNDLE) in which when I logged in, I try to access the login page again the login form is shown.Is there's no redirection to the default page, even if I'm actually logged in. How to prevent this login form ,after logged in.</p>
  
  <p>Below is my security.yml</p>
  
  <p><strong>UPDATED</strong></p>
  
  <pre><code>firewalls:
          main:
              pattern: ^/
              anonymous: ~
              form_login:
                  login_path: /login
                  check_path: /login_check
              logout:
                  path: /logout
                  target: /login    
  
      access_control:
          - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
          - { path: ^/centerreg, roles: IS_AUTHENTICATED_ANONYMOUSLY }
          - { path: ^/customredirect, roles: ROLE_USER }
          - { path: ^/admin/, roles: ROLE_ADMIN }
          - { path: ^/center/, roles: ROLE_CENTER }
          - { path: ^/client/, roles: ROLE_CLIENTADMIN }
          - { path: ^/examcenter/, roles: ROLE_EXAMCENTER }
          - { path: ^/tutor/, roles: ROLE_TUTOR }
          - { path: ^/evaluator/, roles: ROLE_EVALUATOR }
          - { path: ^/student/, roles: ROLE_STUDENT }
          - { path: ^/user/, roles: ROLE_USER }
  </code></pre>
  
  <p>Any help would be appreciable.</p>