The town’s attorney told the board it did not follow state law, leading to a series of corrective actions in recent weeks.