fix 0 not accepted as valid user input