Moving the url check