fix valid secret after type column introdcued to collection table