Redirect to root page after login/logout