I have these two methods responsible for adding users from another system in that system.
private function api_login($email, $password){
$curl = cu