added reg redirect for logged-in users.