Raise value error on empty hostname

Resolves issue #57 by raising value error when hostname is empty