Error of flagging while not logged in fixed