Only validate url when it is going to be used