updated code so that it will send back the clients id and name