Check mac address function added