home page now directs to app or index depending on authentification