IP 'localhost' allowed as valid IP