Added validateURL.

Addition of validateURL. AKA Function #5