moved nonce check to see actual error