add login success event, but isnt complete code