Code to validate whether WWPN is valid or not