login cleanup