Add IP validation and tests for Visitor model