Update for Login and Logout