Checking for invalid month.