Login working using send_request