Make password optional to support the format: http://username@hostname/