Fixed UrlValidator to allow localhost

- modified the UrlValidator constructor so that it allows localhost
- check out UrlValidator documentation for more info :)

https://commons.apache.org/proper/commons-validator/apidocs/org/apache/commons/validator/routines/UrlValidator.html