refactoring accessURL validation