add cmd.c file and cmd_nick() function, change login() function