made validateRequest static