logout on edit page