Update some rules, add login stuff