Added a log in check to protect routes when the user is not logged in