fix to validate negative value