Implementing user registration. WIP.