Fixed clients to modify metadata server url from login response, so that target url is dynamically set