Added verification of the signature