logout button + func
login function running / create new principal running