add ip validation
Merge pull request #24 from helmedeiros/addHosterValidation

add ip validation