login callbacks and injection of services