redirect to main page on logout