Properly checking for persistent login ability

Closes #166