year printing correctly, input errors written