Fix some validation issues

Hi WTWSMS team,

I've fixed a few validator issues, hope this can help.
Cheers for the mod !

Romulien