turns out angular has built in url validation
merge