Added validation to the component service layer.