Fix redirect for logged users