added ability to login without a browser