redirect to public site if not logged in