GET method of API returning output with dummy parameter for the first time, after a user submits the form again then it takes the dynamically added user input. Why is this happening?!