changing home page component depending on login.