CURRIKI-6058 XWikiUsers class changes for Registration and Profile