Properly check the signature