add input check for led() function