Abstracting model's validator