Login group

Fix for #38 (also has cask test fix)