Minor fix.
Validate the year.
Adding class validation.