socket expire date validation fix