first github commit

auto login, login failure check, portal bb library login