How can i fix the Validation for this Class?

Printable View