Validate inputs to all checks. Add InvalidRequestError