validation and model scaffold