events api working, login, logout, and registration is also working --big commit