Fixed service injection issue on authenticate