validation model for updateing & inserting
validation for model on inserting & updating