What do you mean by "sign me in automatically"? If it means you're using SASL, then you're doing something wrong, because SASL logs into nickserv before trying to join the channels, so that should work.

Where these instructions say "username", they really mean your freenode accountname.

https://freenode.net/kb/answer/mirc