Added check for entering device's MAC address using regular expression.