Separate register and login functionality.