You are going to need some sort of database mysql and ajax and php. There is a couple tutorials in the tutorial section with regards to making registration, login and c2. 1 or 2 tuts on the subject. And one on multiplayer (I know not related) but great and showing you how to pass data to your database and back.