add toggle lock, useful for validation