simple nonce checking function