Server-side model validation