Fix errors on user private profile

Display error message when there is incorrect input. Also fixes
the assignation of the native language badge. Closes #652.
Closes #694