Add login rule.