Added regex for input url

A check is made to ensure that a valid URL has been entered.