Added login stuff, related policy, and made minor spacing changes