edited setting and insert logout