Fixes #3: Added a redirect when logged in and navigating to the login page.