Correctly show the "you need to be logged in to comment" message (see #7031)