1. Users who have been successfully registered (added to the user table in the database) should be able to go to the /login route to use their credentials to log in. You will need to review the Flask-Login docs and the lessons from yesterday to be able to do this.
This is what you're hoping to achieve:

2. Add 1 line of code in the /register route so that when users successfully register they are taken back to the home page and are logged in with Flask-Login.
3. In the in the /register route, if a user is trying to register with an email that already exists in the database then they should be redirected to the /login route and a flash message used to tell them to log in with that email instead.
This is what you are aiming for:

4. In the /login route, if a user's email does not exist in the database or if their password does not match the one stored using check_password() then they should be redirected back to /login and a flash message should let them know what they issue was and ask them to try again.
This is what you're aiming for:

5. Figure out how to update the navbar so that when a user is not logged in it shows:

But if the user is logged in / authenticated after registering, then the navbar should show:

HINT: The navbar code is inside header.html
HINT: https://flask-login.readthedocs.io/en/latest/#login-example
6. Code up the /logout route so that when the user clicks on the LOG OUT button, it logs them out and takes them back to the home page.
This is what you're aiming for:
