adding login callbacks