add ip validator tag
simplify ip validator functions
remove extra parens
Merge pull request #12 from attilaolah/ip

Add ip validator tag