fix js validation for expired date