fixed ajax for logged in people