Pass the request object to the validateFunc method.