added empty json if user not logged in