error checking on year still unworking