Added NICK and USER commands at connection, better error handling.