fixing a bug in the valid url method