Added nonce check to profile update