I am trying to grab username,password and send them as parameter to fetch API results,and passing the result to contextprovider, to redirect user to profile page.which is wo