Update scan.py

URL Input Validation Fixed.