change to use httpurlconnection for login and people