Modified the authentication success processing.