This will not only return true when the hostname is valid, but also for every valid URL. Therefore, we probably just want the `urlRegex.test('http://' + value)` part to make sure that they haven't entered `http://` before the host name