Handling year and month inputs sanely.