Error in validation

I have the following model