update login endpoint response