If the email already exists, the system tells the user to log in. If not, it creates the account and redirects to the login screen.