Integrating a login callback