added validation on year