The psychology behind a person's decision to follow public health guidelines