Fixed isExpired validation.