Fixed IF statement so that input has to be less than 5 but greater than 0