User registration, login and logout working.

User registration, login and logout now working. Code checking and
server-side schema validation pending.