Added login and scrape functions