validate negative numbers