validate variable types. (for now only have email and ip (v4) validators)