Connect to the IRC server and type the following commands
/msg nickserv register <password> <email>
You will receive a email with a password to confirm the registration process.
2) To avoid other users to use your nickname
/msg NickServ set enforce on
If someone try to use your nickname, this person will have their nickname changed.
3) To identify your nickname
/msg nickserv identify <password>