Checking the signature