Inserted a login function, which is a basic HTTP GET operation (haven't implemented POST on server side yet)
It must run from inside a thread, you cannot have Network IO on main thread