Got the correct reply, but now need to fix the redirect problem