added onlogin event callback
added onlogin event callback