added utils to test if urls are valid