Avoid construction if the credential is not existen.