Functionality to comment if the user has been logged in