Added validateURI method