Add online login

I added the config option for online mode authentication, and am ready to merge