Fixed error messages in validator