Use validation in Model