change login: check status 200 instead of 401
prepare document tree to show only public docs