Useing HttpClient to try to login

Made some code optimizations, but still can't post data to login.