add logout sistem, and fixing little bug