throw custom error if the signature is encrypted