add login rule