Register

This is the code needed to register new users.