Tie model validation to views.