madified index view. Now user goes to index if not logged in and to home if logged in