added type checking on validate_int()'s min and max values