adds sane pages: 404, prohibited. Fixes redirection for logged in user.