Change compare error message

Detect whether field has a compare attr and change error message
accordingly