changed account handling in the custom AuthenticationSuccessHandler