updated node controller to return user