Fixed bug #697: Remote validation uses wrong error messages

This change doesn't break any existing unit test, but there is no additional tests. It would be great if somebody could create these tests, because I don't know how to do it.