Had to change the way the validator works to get localhost to work as a valid url. (Without this change discovery wouldn't work)