Updating Response API for new schema (adding isLoggedIn)

Also updating unit test.

Change-Id: Ifedf775b72e5e5f0f6bad6335e633c98f776ad98