added redirect for logout