onAfterProfileUpdated isn't an general joomla! event, joomla! use onUserAfterSave