Added validation to JSON in ActionHandler