Implementing user registration.