Fixed referer saving  in Auth plugin