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

Let's wait for a conclusion in the bug before merging this.