error messages for validate