I think a $("#guest").hide(); line is missing here.