Psychological research suggests loyalty is built in two places: consistency between words and actions, and supportive responses during stress.