Added new validate_token api and new decorators for retrieving the agent headers