as per the question I have to call a function through which I am calling an API which will register the user and that will take parameters as per the value which stored in S