made some chagnes to login adn logout