I'm following few tutorials along with the documentation, but I can't make my provided user in `security.yml` to log in. Here is my YML file that provides a username called `user` and a password `userpass`, as a simply user.

```
security:
    role_hierarchy:
        ROLE_ADMIN: ROLE_USER
        ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    encoders:
        Symfony\Component\Security\Core\User\User: sha512

    providers:
        in_memory:
            memory:
                users:
                    user: { password: userpass, roles: ROLE_ADMIN }

    firewalls:
        secured_area:
            anonymous: ~
            pattern: ^/
            form_login:
                check_path: /login_check
                login_path: /login
            logout:
                path: /logout
                target: /

        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false

    access_control:
        - { path: ^/new, roles: ROLE_ADMIN }
        - { path: ^/create, roles: ROLE_ADMIN }
        - { path: ^/edit, roles: ROLE_ADMIN }
        - { path: ^/delete, roles: ROLE_ADMIN }
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }

```

The `loginAction` is the same from the official documentation:

```
public function loginAction()
{
    $authUtils = $this->get('security.authentication_utils');

    $error = $authUtils->getLastAuthenticationError();

    $lastUsernme = $authUtils->getLastUsername();

    return $this->render('UserBundle:Login:login.html.twig', array(
        'last_username' => $lastUsernme,
        'error' => $error
    ));
}

```

I don't know what else I should paste here because every view, controller and route works perfectly. The only issue is that whenever I try to log in with that user and password the "BAD CREDENTIALS" message is shown.