added login event api