Created error functions for non-numeric values and if dividing by zero