[fix bug 1026122] Better error messages for location in /user/edit.
Merge pull request #1003 from glogiotatidis/1026122v2

[fix bug 1026122] Better error messages for location in /user/edit.