validate divide by zero errors