add supporting to define validation rules through static validates variable in Model class