title: FOSUserBundle - BadCredentialsException
body: <p>I use <strong>FOSUserBundle</strong> to provide user authorization and registration. Everything works fine, but when I try to log in using a non-existing username, I get this error:</p>
  
  <pre><code>exception 'Symfony\Component\Security\Core\Exception\BadCredentialsException'
  with message 'Bad credentials' in
  /var/www/OnTheWay/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.php:73
  Stack trace:
  #0 /var/www/OnTheWay/app/cache/dev/classes.php(120): session_start()
  #1 /var/www/OnTheWay/app/cache/dev/classes.php(198): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage-&gt;start()
  #2 /var/www/OnTheWay/app/cache/dev/classes.php(498): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage-&gt;getBag('attributes')
  </code></pre>
  
  <p>I've tried finding a solution, but I didn't get any results.</p>