update login to new api_event