Adds rules and improves login experience.