Add nickname and password to config.
Pattern match instead of `if null...`.