Here's a quick tutorial on how to add a user group legend to your form.
ACP >> Temmplates & Styles >> Templates >> Your Themes Template >> Index Templates >> index_whosonline
Add below Everything:
Sorry, but you need at least 25 posts and 5 hours online time to unlock hidden content.
Save template and thats it.