fixed race condition in getevents, added /login