input for valid time