add check for valid url