Studying the Effect of Formal Rules on Behavior and Social Norms using Lab and Lab-in-the-Field Experiments