Update logout func

redirect to root url