Update cookbook/security/entity_provider.rst

Also serialize the username, to prevent issues with reloading the user (i.e. losing ROLE_PREVIOUS_ADMIN after you switched between accounts)