validation php plugin was not right - fixes #805