simplified version of logout