Refining validation error macro