Added mac address validation (issue #2953)