Method for verifying signature. Doesn't work yet though.