remove initialization of withCredentialsValue = flase as iso c++ complains it.