changed use from var_dump to regular expression for URL validation