Update login and logout