fixed reg localhost redirect