Added if statement validating numbers. Line 31