add check username and email when creating new account for joomla and fix #2476 and spent 3 hours on #2476