adding changes for sharepoint login wantsurl