Added more logging on bad refferer pages