Added refresh after logout to retrieve the new STATE(csrf token)