bugfix to prevent entering negative and float values in quantity field