Validate the signature during api calls.