Added auth check to load workorder pages.