add conditions to changing profile settings