added base api controller, user login api call and events controller