added json parser for login/logout/activities