make a class for ip validation to avoid unauth'd rate limiting on heroku