added a custom model validation