typo, should be URL_UNAME and $url_uname not URL_NAME and $url_name