User is now redirected to intended URL once logged in