Fix signature validation

On the correct according to the documentation.