[fix] Resolves invalid bail when only one month/year is truthy and ensures month is between 1 and 12.