fix logout the proper way