updates to root and redirect for logged in users