The userName field of the setUserCfg wasn't being captured, and hence setUserName and getUserName were not working in the client side.