fixing homepage for logged in user