redirect from index to home if logged in