Fix profile.xhtml bugs when trying to change email.