fixes #1

This will validate domain/ip input using PHP's filter_var method