Allowed user to navigate to the dashboard from the home screen if logged in