Added Uri validity checker