login clean up