added http request for login