Redirect to index if user is logged in