Removal of BeautifulSoup and a login-check method