fix homepage routing for user logged in