Fix checking logged-in session

Logged in session now includes location.replace, so we can't use that to test
for an invalid session
Replace quiet mode with verbose mode