not save location if url is invalid