[SecurityBundle] error helper added symfony/symfony#11147

Added helper that extracts last authentication error and username.