Set up a server decorator that handles validating requests.