XWIKI-6882 : Improvements on user changing password. A few fixes.