Added purl for better URL parsing
Automatic login for demo accounts