Fixed main page so that if user is signed in it goes to posts index