added the ability to keep persistent logins