Validates public_key and app's version.