routing fix for logged in users and a registration route