switched creds check order