Moves the validation to the service level so that we don't have to duplicate code for the GraphQL and REST API