Manages the user registration and login system.