RestClient login code is basically working.