Added logic to logout of the editor