Add token validation for plugin registration