added function 3 validateURL function to flowchart.