Convert port number to string
Unset password only if we have set it, too.