change topic validate to model