Update client loginReqeusts to more generic function.