Finish adding logic to check signature.