refactor and clean adding some validations for negative, zero and non number inputs