Using redis for session storage. Logged in users will now be redirected to the home page if they try to navigate to the login or registrationn pages. On successful login, the User object is stored in window and the user is redirected to the home page