Added validGPIO validation function