Added utility method in InputComponent for input labels