Fixed routing for logged in users. Fixed dist build.